#app {
    .background {
        background-color: #727d88;
        background-image: linear-gradient(
            210deg,
            #727d88 0%,
            #5352a1 10%,
            #31d0a8 66%,
            #d0c7c7 100%
        );
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
    }

    // 登录
    .login{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba($color: #000, $alpha: 0.3);
        width: 500px;
        min-height: 200px;
        border-radius: 25px;
        display: flex;
        justify-content: center;
        align-items: center;

        .itembox{
           padding: 20px 0 ;
            .title{
                font-size: 30px;
                text-align: center;
                margin: 0;
                // margin-top: -50px;
                margin-bottom: 30px;
            }
            .item{
                display: flex;
                justify-content: center;
                margin: 15px 0;
                position: relative;
                
                .upload{
                    line-height: 35px;
                    display: inline-block;
                    width: 178px;
                    // text-align: center;
                    cursor: pointer;
                    color: #fff;
                    text-decoration: underline;
                }
                
                .username{
                    font-size: 15px;
                    margin: 0;
                    line-height: 35px;
                    margin: 0 20px 0 0;
                    color: #fff;
                    font-weight: 600;
                }
                .unameInput{
                    height: 30px;
                    border-radius: 5px;
                    border: none;
                    padding: 0 0 0 15px;

                    &{ outline-color:#0d7370; }
                }

                .btn{
                    width: 200px;
                    height: 40px;
                    background: #278c52;
                    // border: none;
                    font-size: 18px;
                    color: #fff;
                    border-radius: 5px;
                    margin: 20px 0 0 0;
                }

                .reload{
                    font-size: 15px;
                    color: #d0c7c7;
                    position: absolute;
                    right: -90px;
                    cursor: pointer;
                    top: 3px;
                }

            }
        }
        
        
    }

    .chat {
        width: 70%;
        min-height: 300px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba($color: #000, $alpha: 0.3);
        border-radius: 20px;
        // padding: 15px;
        box-sizing: border-box;

        .top {
            display: flex;
            background: rgba($color: #000, $alpha: 0.6);
            border-radius: 20px 20px 0 0;
            padding: 15px;
            .head {
                border-radius: 50%;
                width: 40px;
                height: 40px;
            }

            .intro {
                margin-left: 20px;
                color: #fff;
                .chatName {
                    font-size: 14px;
                }

                .author {
                    font-size: 13px;
                    color: rgba($color: rgb(250, 250, 240), $alpha: 0.6);
                }
            }
        }
        .content {
            height: 500px;
            overflow-y: scroll;

            &::-webkit-scrollbar {
                width: 5px;
            }

            // 发言的通用样式
            .user_speak {
                display: flex;
                padding: 15px;
                .userHeadImg {
                    width: 35px;
                    height: 35px;
                    border-radius: 50%;
                }

                .userchat {
                    .name {
                        font-size: 12px;
                        color: rgba($color: rgb(250, 250, 240), $alpha: 0.6);
                        margin-top: -5px;
                    }
                    .speak {
                        background: rgba($color: #000000, $alpha: 0.4);
                        color: rgba($color: rgb(250, 250, 240), $alpha: 0.8);
                        padding: 5px 15px;
                        margin: 6px 0 0 0;
                        max-width: 500px;
                        font-size: 14px;
                    }
                }
            }
            // 别人发言
            .left {
                .userchat {
                    margin: 0 0 0 15px;
                    .speak {
                        border-radius: 0 8px 8px 8px;
                    }
                }
            }
            // 自己发言
            .right {
                flex-direction: row-reverse;

                .userchat {
                    margin: 0 15px 0 0;
                    .name {
                        text-align: right;
                    }
                    .speak {
                        border-radius: 8px 0 8px 8px;
                        background-color: #278c52;
                        background-image: linear-gradient(
                            90deg,
                            #278c52 0%,
                            #0d7370 100%
                        );
                    }
                }
            }

            // 离开进入的通用样式
            .enterOrLeave{
                text-align: center;
                font-size: 13px;
                padding: 8px 0;

                .enter{
                    color: #31d0a8;
                }
                .leave{
                    color: #d0c7c7;
                }
            }

            .inputImg{
                width: 100px;
            }

        }
        .bottom {
            height: 110px;
            background: rgba($color: #000, $alpha: 0.6);
            border-radius: 0 0 20px 20px;
            padding: 15px 15px 0 15px;

            .input {
                margin: 0;
                width: 100%;
                height: 80px;
                color: rgba($color: rgb(250, 250, 240), $alpha: 0.6);
                border: none;
                // padding: 15px;
                box-sizing: border-box;
                overflow-y: scroll;
                
                .inputImg{
                    width: 80px;
                }

                &::-webkit-scrollbar {
                    width: 5px;
                }

                &:focus-visible {
                    outline: none;
                }
            }

            .btn_box {
                height: 30px;
                display: flex;
                justify-content: space-between;

                .iconBox{
                    .chooseimg{
                        width: 25px;
                        margin: 0 0 0 20px;
                        cursor: pointer;
                    }
                }

                .send {
                    margin-right: 25px;
                    .sendBtn {
                        width: 70px;
                        font-size: 14px;
                        color: #fff;
                        background: rgb(39, 135, 80);
                        
                    }
                }
            }
        }
    }
}
